﻿using System;

public class TesteDelegate
{
    delegate int Operador(int x);
    public static int Quadrado(int x)
    {
        return x*x;
    }
	public static int Cubo(int x) 
	{
        return x * x * x;
	}

    public static void Main()
    {
        Operador Op1 = Quadrado;
        Console.WriteLine(Op1(3));
        Op1 = Cubo;
        Console.WriteLine(Op1(3));
        Console.ReadLine();
    }
}
